package com.github.llyb120.driver.qiuya;

import com.github.llyb120.json.Obj;

import java.util.UUID;
import java.util.concurrent.CountDownLatch;

public class Message {
    public String event;
    public String ack;
    public String content;

    public CountDownLatch cd;
    public Obj result;

    public Message(String event, String uuid, String content) {
        if (uuid == null) {
            uuid = UUID.randomUUID().toString();
        }
        this.ack = uuid;
        this.event = event;
        this.content = content;
    }
}
